/*
 * Copyright (C), 2002-2015, 苏宁易购电子商务有限公司
 * FileName: QryActDetailRsp.java
 * Author:   13082136
 * Date:     2015-10-26 下午2:46:47
 * Description: //模块目的、功能描述      
 * History: //修改记录
 * <author>      <time>      <version>    <desc>
 * 修改人姓名             修改时间            版本号                  描述
 */
package com.suning.sawp.dto.esb;

import java.util.List;

import com.thoughtworks.xstream.annotations.XStreamAlias;

/**
 * 
 * 〈一句话功能简述〉<br>
 * 活动名称与编码查询返回bean
 *
 * @author 13082136
 * @see [相关类/方法]（可选）
 * @since [产品/模块版本] （可选）
 */
@XStreamAlias("MbfBody")
public class QryActDetailRsp {
    @XStreamAlias("requestResult")
    private String requestResult;

    private String errorCode;

    @XStreamAlias("failedReson")
    private String failedReson;

    @XStreamAlias("activityList")
    private List<ActivityDetail> activityList;

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getRequestResult() {
        return requestResult;
    }

    public void setRequestResult(String requestResult) {
        this.requestResult = requestResult;
    }

    public String getFailedReson() {
        return failedReson;
    }

    public void setFailedReson(String failedReson) {
        this.failedReson = failedReson;
    }

    public List<ActivityDetail> getActivityList() {
        return activityList;
    }

    public void setActivityList(List<ActivityDetail> activityList) {
        this.activityList = activityList;
    }

    @XStreamAlias("activityDetail")
    public static class ActivityDetail {

        @XStreamAlias("activityId")
        private String activityId;

        @XStreamAlias("activityName")
        private String activityName;

        @XStreamAlias("startTime")
        private String startTime;

        @XStreamAlias("endTime")
        private String endTime;

        @XStreamAlias("activitySecretKey")
        private String activitySecretKey;

        public String getActivityId() {
            return activityId;
        }

        public void setActivityId(String activityId) {
            this.activityId = activityId;
        }

        public String getActivityName() {
            return activityName;
        }

        public void setActivityName(String activityName) {
            this.activityName = activityName;
        }

        public String getStartTime() {
            return startTime;
        }

        public void setStartTime(String startTime) {
            this.startTime = startTime;
        }

        public String getEndTime() {
            return endTime;
        }

        public void setEndTime(String endTime) {
            this.endTime = endTime;
        }

        public String getActivitySecretKey() {
            return activitySecretKey;
        }

        public void setActivitySecretKey(String activitySecretKey) {
            this.activitySecretKey = activitySecretKey;
        }

        @Override
        public int hashCode() {
            final int prime = 31;
            int result = 1;
            result = prime * result + ((activityId == null) ? 0 : activityId.hashCode());
            return result;
        }

        @Override
        public boolean equals(Object obj) {
            if (this == obj)
                return true;
            if (obj == null)
                return false;
            if (getClass() != obj.getClass())
                return false;
            ActivityDetail other = (ActivityDetail) obj;
            if (activityId == null) {
                if (other.activityId != null)
                    return false;
            } else if (!activityId.equals(other.activityId))
                return false;
            return true;
        }

        @Override
        public String toString() {
            StringBuilder builder = new StringBuilder();
            builder.append("ActivityDetail [activityId=").append(activityId).append(", activityName=")
                    .append(activityName).append(", startTime=").append(startTime).append(", endTime=").append(endTime)
                    .append(", activitySecretKey=").append(activitySecretKey).append("]");
            return builder.toString();
        }
    }
}
